namespace go favouriteserver

struct User{
    1:i64 ID
    2:string Name
    3:i64 FollowCount
    4:i64 FollowerCount
    5:bool IsFollow
}

struct Video{
	1:i64 ID
	2:User Author
	3:string Title
	4:string PlayUrl
	5:string CoverUrl
	6:i64 FavouriteCount
	7:i64 CommentCount
	8:bool IsFavourite
}
struct FavorVideoRequest{
    1:User user
    2:i64 videoId
}
struct FavorVideoResponse{

}

struct DisFavorVideoRequest{
    1:User user
    2:i64 videoId
}

struct DisFavorVideoResponse{

}

struct GetFavouriteListRequest{
    1:User user
}

struct GetFavouriteListResponse{
    1:list<Video> resultList
}

service FavouriteService {
    FavorVideoResponse FavorVideo (1:FavorVideoRequest req)
    DisFavorVideoResponse DisFavorVideo (1:DisFavorVideoRequest req)
    GetFavouriteListResponse GetFavouriteList (1:GetFavouriteListRequest req)
}



